import request from '@/config/axios'

// 董事长任务催办配置 API
export const ReminderApi = {
  // 查询董事长任务催办配置分页
  getChairmanReminderPage: async (params) => {
    return await request.get({ url: `/task/reminder/page`, params })
  },

  // 查询董事长任务催办配置详情
  getChairmanReminder: async (id) => {
    return await request.get({ url: `/task/reminder/get?id=` + id })
  },

  // 新增董事长任务催办配置
  createChairmanReminder: async (data) => {
    return await request.post({ url: `/task/reminder/create`, data })
  },

  // 修改董事长任务催办配置
  updateChairmanReminder: async (data) => {
    return await request.put({ url: `/task/reminder/update`, data })
  },

  // 删除董事长任务催办配置
  deleteChairmanReminder: async (data) => {
    return await request.post({ url: `/task/reminder/deleted`,data})
  },

  // 导出董事长任务催办配置 Excel
  exportChairmanReminder: async (params) => {
    return await request.download({ url: `/task/reminder/export-excel`, params })
  },

  //催办
  manualReminderChairman :async(data) =>{
    return await request.post({ url: `/task/reminder/manualReminder`,data  })
  },
  //催办
  manualReminderConfig :async(data) =>{
    return await request.post({ url: `/task/reminder/manualReminderConfig`,data  })
  },
}
